import Vue from 'vue'
import VueRouter from 'vue-router'
import { constantRouterMap } from '@/config/router.config'


Vue.use(VueRouter)
var path = process.env.VUE_APP_ADMIN_FRONT ;
export default new VueRouter({
  mode: 'history',
  base: path,
  scrollBehavior: () => ({ y: 0 }),
  routes: constantRouterMap
})
